package com.rent.house.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


/**
 * 房源图片实体类
 */
@ApiModel("图片实体类")
@Data
@TableName("pic")
public class Pic extends Model<Pic> {

    @ApiModelProperty("图片ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("房源ID")
    private Long houseId;

    @ApiModelProperty("图片URL")
    private String url;

    @ApiModelProperty("排序")
    private Integer sort;

    @TableField("is_main")
    @ApiModelProperty("是否主图：0-否，1-是")
    private Integer main;

    @ApiModelProperty("创建时间")
    private Date createTime;
}

